package com.gxa.p2p.service;
import com.gxa.p2p.pojo.Management;
import java.util.List;
import java.util.Map;

/**
 * 轮播业务层操作接口
 * @author HS
 */
public interface ManagementService {

    /**
     * 根据id查找轮播信息
     * @param id
     * @return
     */
    Management findManagementById(Long id);

    /**
     * 轮播的分页查询
     * @param map
     * @return
     */
    Map<Integer,List<Management>> findManagementByPage(Map map);


    /**
     * 增加轮播
     * @param management
     */
    void addManagement(Management management);

    /**
     * 删除轮播
     * @param id
     */
    void deleteManagement(Long id);

    /**
     * 更新轮播
     * @param management
     */
    void updateManagement(Management management);
}
